<?php
/**
 * @Copyright: (C)2021 xuzy Inc. All Rights Reserved.
 * @Author: xuzy
 * @Date: 2021/12/19 19:13
 */

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class OrderGoods extends Model
{
    protected $table = 'order_goods';

    public function orderInfo()
    {
        return $this->hasOne(Order::class,'id','order_id');
    }

    public function user()
    {
        return $this->hasOne(User::class,'id','uid');
    }
}